@import './variables.scss';

$family: PingFang SC, Helvetica Neue, Helvetica, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, Arial, sans-serif;

@mixin textStyle($color: $--color-N1, $fs: 12px, $lh: 16px, $fw: normal, $ff: null) {
    @if $ff == null {
        font-family: $family;
    } @else {
        font-family: $ff, $family;
    }
    font-style: normal;
    font-weight: $fw;
    font-size: $fs;
    line-height: $lh;
    color: $color;
}

@mixin ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
